Skip to content

add sandbox sales-demo account - #1334

Open
Sharqiewicz wants to merge 8 commits into
stagingfrom
feat/sandbox-dashboard-account
Open

add sandbox sales-demo account#1334
Sharqiewicz wants to merge 8 commits into
stagingfrom
feat/sandbox-dashboard-account

Conversation

@Sharqiewicz

Copy link
Copy Markdown
Contributor

What this adds

  • Demo account + restore — one sandbox profile seeded to a pitch-ready
    state, restorable on OTP login or via bun run seed:demo. Restore is
    idempotent: every row it writes carries a fixed demo UUID prefix, so it can
    never touch records created during a demo.
  • Demo Alfredpay provider — canned KYB approvals so the CO corridor can be
    re-onboarded endlessly. Off by default (DEMO_PROVIDER_ENABLED), because a
    sandbox also serves partner integration testing, which must exercise the
    real provider.
  • Amoy balance fixNetworks.PolygonAmoy was missing from the Alchemy
    lookup, so the dashboard funding gate read "balance unavailable" and blocked
    registration on every sandbox offramp.

Safety

Both config/vars.ts and installDemoProviders refuse to start the process
when DEMO_PROVIDER_ENABLED=true outside DEPLOYMENT_ENV=sandbox. The login
hook returns before any DB access unless the deployment is sandbox and the
email matches DEMO_ACCOUNT_EMAIL; it never creates or elevates an identity,
and its errors are swallowed so it can neither grant nor deny a login.

@netlify

netlify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploy Preview for vrtx-dashboard failed. Why did it fail? →

Name Link
🔨 Latest commit d62901a
🔍 Latest deploy log https://app.netlify.com/projects/vrtx-dashboard/deploys/6a8300128167ec00087d1a45

@netlify

netlify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit d62901a
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6a8300120bd5ba0008ada7ce
😎 Deploy Preview https://deploy-preview-1334--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploy Preview for vortex-sandbox failed. Why did it fail? →

Name Link
🔨 Latest commit d62901a
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6a830012cf1f6c000877fdbe

@ebma
ebma requested a balanced review from Copilot August 17, 2026 11:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

ebma added 7 commits August 17, 2026 14:27
The stored tokenHash was derived from a different string than the raw
token the dashboard offers for re-copy, so the copied invite link
resolved to no invitation.
getRampStatus rejects quotes without fees.displayFiat with a 500;
seeded quotes carried only the USD denomination.
Individual (KYC) customer creation now reaches the real client instead
of persisting an invented id that later real-client calls reject with
confusing provider 404s. findCustomer no longer needs faking: it is
only reachable from the real client's 409 recovery.
provider_customers is unique on (provider, provider_customer_id); a
bare counter restarting at 1 could collide with rows persisted by a
previous process.
Config snapshots are now taken before database setup can throw, the
verify-otp route is exercised end to end so the login hook cannot be
silently unwired, and installDemoProviders' successful swap path is
covered alongside its refusal paths.
Deletes are scoped by corridor query and fixed ids; nothing reads the
prefix predicate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants